package com.demo.jvm.structure.constant;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * CONSTANT_InvokeDynamic_info {
 * u1 tag;
 * u2 bootstrap_method_attr_index;
 * u2 name_and_type_index;
 * }
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CONSTANT_Invoke_Dynamic_info extends CONSTANT_info {
    private int bootstrapMethodAttrIndex;
    private int nameAndTypeIndex;

    public CONSTANT_Invoke_Dynamic_info(byte tag, int tableIndex, int bootstrapMethodAttrIndex,int nameAndTypeIndex) {
        super(tag, tableIndex);
        this.bootstrapMethodAttrIndex = bootstrapMethodAttrIndex;
        this.nameAndTypeIndex = nameAndTypeIndex;
    }
}
